package org.elfen.sys.facade;

import org.elfen.sys.entity.SysUser;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 微服务接口类
 */
public interface SysUserService {
	static final String prefixPath = "/sysUserService";
	
	@RequestMapping(value = prefixPath+"/hello" ,method = RequestMethod.GET)
	public String hello(@RequestParam(value="name") String name);
	
	@RequestMapping(value=prefixPath+"/insert",method=RequestMethod.POST)
	public SysUser insert(@RequestBody SysUser sysUser);
	
	@RequestMapping(value = prefixPath+"/deleteById" ,method = RequestMethod.GET)
	public boolean deleteById(@RequestParam(value="id") String id);
	
	@RequestMapping(value = prefixPath+"/flagDeleteById" ,method = RequestMethod.GET)
	public boolean flagDeleteById(@RequestParam(value="id") String id);
	
	@RequestMapping(value=prefixPath+"/updateById",method=RequestMethod.POST)
	public SysUser updateById(@RequestBody SysUser sysUser);
	
	@RequestMapping(value = prefixPath+"/selectById" ,method = RequestMethod.GET)
	public SysUser selectById(@RequestParam(value="id") String id);
	
	@RequestMapping(value=prefixPath+"/selectOne",method=RequestMethod.POST)
	public SysUser selectOne(@RequestBody SysUser sysUser);
	
}
